<?php
/**
 * Created by PhpStorm.
 * User: Liulibao
 * Date: 2019/10/11
 * Time: 20:37
 */

namespace app\common\validate;


use think\Validate;

class Affiche extends Validate
{
    protected $rule = [
        ['title', 'require', '公告名称不能为空'],
        ['start_at', 'require', '开始时间不能为空'],
        ['end_at', 'require', '结束时间不能为空'],
        ['contents', 'require', '公告内容不能为空'],
    ];

    protected $scene = [
        'affiche' => ['name', 'contents']
    ];
}